package com.java110.intf.meter;


import com.java110.config.feign.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = "service-meter", configuration = {FeignConfiguration.class})
@RequestMapping("/meter")
public interface IMeterInnerServiceSMO {

    @ResponseBody
    @GetMapping("/up")
    String up(@RequestParam String name);

    @ResponseBody
    @GetMapping("/down")
    String down(@RequestParam String name);

}
